package com.banyuan.项目;

import java.io.Serializable;
import java.util.Vector;

//服务器对客户端的回应；
//使用对象序列化；
public class Response implements Serializable {
    //功能界面：
    //1、服务器信息；
    //2、个人信息；
    private int function;
    private String userName;
    private String msg;
    private String expression;
    private String isAll;
    private String to;
    //当前在线人数；
    private int numClient;

    private Vector<String> v;

    public int getFunction() {
        return function;
    }

    public void setFunction(int function) {
        this.function = function;
    }

    public String getUserName() {
        return userName;
    }

    public Response setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getIsAll() {
        return isAll;
    }

    public void setIsAll(String isAll) {
        this.isAll = isAll;
    }

    public Vector<String> getV() {
        return v;
    }

    public void setV(Vector<String> v) {
        this.v = v;
    }

    public int getNumClient() {
        return numClient;
    }

    public Response setNumClient(int numClient) {
        this.numClient = numClient;
        return this;
    }

    public String getTo() {
        return to;
    }

    public Response setTo(String to) {
        this.to = to;
        return this;
    }
}
